<?php

    $url = new Url();

    require('gantti.php'); 
    //require('data.php'); 

    date_default_timezone_set('UTC');
    setlocale(LC_ALL, 'en_US');

    /*echo "<pre>";
    print_r($data);
    echo "</pre>";
    die;
    */                
    if($data != null){
        $gantti = new Gantti($data, array(
        //'title'      => 'iColdStyle',
        'cellwidth'  => 30,                
        //'cellheight' => 35,
        'cellheight' => 20,
        'today'      => true
        ));   
    }    

?>

<link rel="stylesheet" type="text/css" href="<?=Yii::app()->params["urlRs"] ?>/css/gantti.css" media="all" /> 

<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->



<div id="main" class="nosidebar">    
    <div id="content">        

        <h2>Biểu đồ công việc</h2>
        <div>
            <?php echo $gantti ?>  
        </div>
        <div style="clear:both;"></div>
    </div>
</div>